package com.hospital.hospitalsystem.modules.doctor.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2022/2/24
 */
@Data
public class DoctorBookRsp {

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date day;

    private List<TimePeriod> timePeriodList;

    @Data
    public static class TimePeriod {

        private String userUuid;

        private String detailUuid;

        private String orderUuid;

        @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
        private Date startTime;

        @JsonFormat(pattern = "HH:mm", timezone = "GMT+8")
        private Date endTime;

        private String userName;

        private Integer userAge;

        private String userSex;

        private Integer status;

        private Integer rank;
    }
}
